<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<#include "/admin/include/head.htm">
<script type="text/javascript">
	$(function(){
		var mainform = $("#mainform");  
		//表单底部按钮 
    	LG.setFormDefaultBtn(f_cancel, function(){
			f_save(mainform, "b2c_tag_list");
		});
	});
</script>
</head>
<#if !tag??>
	<#assign isAdd = true />
<#else>
	<#assign isEdit = true />
</#if>
<body style="overflow:hidden;padding:10px;">
<form action="<#if isAdd??>${base}/admin/b2c/tag/save.jhtml<#else>${base}/admin/b2c/tag/update.jhtml</#if>" method="post" id="mainform" class="validate">
<div id="tabcontainer" style="overflow:hidden;margin:3px;">
	<#if !isAdd??>
		<input type="hidden" name="id" value="${(tag.id)!''}"/>
	</#if>
	<table class="table" style="width:100%;">
		<tr>
			<th>标签名称:</th>
			<td><input type="text" name="name" value="${(tag.name)!''}"  maxlength="20"
					class="formText {required: true, maxlength: 20, remote:'${base}/admin/b2c/tag/checkTagName.jhtml?oldName=${(tag.name)!''}', messages: {remote: '标签名称已存在!'}}"/>
			</td>
		</tr>
	</table>
</div>
</form>
</body>
</html>